package com.atguigu.dao;

import com.atguigu.pojo.Order;
import com.atguigu.vo.HotSetmealVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderDao {
    int insert(Order order);

    Order selectOne(Order order);

    List<HotSetmealVo> selectHotSetmeal();

    Integer selectThisMonthVisitsNumber(@Param("monthString") String monthString);

    Integer selectThisMonthOrderNumber(@Param("monthString") String monthString);

    Integer selectThisWeekVisitsNumber(@Param("weekmonday") Date weekMonday, @Param("lastday") Date lastDay);

    Integer selectThisWeekOrderNumber(@Param("weekmonday") Date weekMonday, @Param("lastday") Date lastDay);

    Integer selectDay(@Param("day") Date day);

    Integer selectTodayVisitsNumber(@Param("day") Date day);

    Order findById(@Param("id") Integer id);
}
